<?php 
/* SVN FILE: $Id: update.ctp 36 2007-09-19 00:39:08Z joe.vasquez $ */
/**
 * view for edit profile
 * @filesource
 * @author			Joe Vasquez <joe.vasquez@gmail.com>
 * @copyright		Copyright (c) 2007, Joe Vasquez
 * @package			redlettr
 * @subpackage		users
 * @since			0.1A
 * @version			0.1A  $Rev: 36 $
 * @lastmodified	$Date: 2007-09-19 00:39:08 +0000 (Wed, 19 Sep 2007) $
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<?php echo $form->create('User',array('action' => 'update'));?>
<?php echo $form->input('User.email',array(
	'type'	=> 'text',
	'value' => $thisUser['User']['email'],
	'error'	=> array(
		'isEmail'	=> 'Please enter a valid email address.',
		'required'	=> 'You forgot to enter your email address.'
	),
	'class'	=> 'textInput'
)); ?>
<?php echo $form->input('User.password1',array('type' => 'password')); ?>
<?php echo $form->input('User.password2',array('type' => 'password')); ?>
<?php echo $form->input('Profile.displayname',array(
	'type'	=> 'text',
	'value' => $thisUser['Profile']['displayname'],
	'class'	=> 'textInput'
)); ?>
<?php echo $form->input('Profile.signature',array(
	'type'	=> 'textarea',
	'value' => $thisUser['Profile']['signature'],
	'class'	=> 'textAreaInput'
)); ?>
<?php echo $form->end('Update'); ?>
<script type="text/javascript">$(function(){$('#UserPassword1').pstrength();});</script>